import pygame

class Bullet(pygame.sprite.Sprite):
    def __init__(self, img, dims=(20,20), position=(100,500)):
        super().__init__()
        self.image = img
        self.width, self.height = dims
        self.position = position
        self.rect = self.image.get_rect()
        self.rect.center = (position[0]+self.width/2, position[1])

    def update(self):
        self.rect.y -= 10
